package com.radar.task.cd;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.File;
import java.util.concurrent.LinkedBlockingQueue;

@Component
/**
 * @author: fy-wbj
 * @description: 覆盖代码注释
 * @date: 2022/6/2
 */
public class Constants {

    /**
     * 覆盖代码注释
     */
    public static String rootPath = "/Users/xx/data/radar/radardata";
    /**
     * 覆盖代码注释
     */
    public static String ncPath = "/Users/xx/data/radar/ncData";
    /**
     * 覆盖代码注释
     */
    public static String tmpPath = "/Users/xx/data/radar/tmp";

    public static boolean jz_001 = false;

    public static int delayed = 0;

    /**
     * 覆盖代码注释
     */
    public static LinkedBlockingQueue<File> singleQueue = new LinkedBlockingQueue<>();

    /**
     * 覆盖代码注释
     *
     * @param rootPath
     */
    @Value("${rootPath}")
    private void setRootPath(String rootPath) {
        Constants.rootPath = rootPath;
    }

    /**
     * 覆盖代码注释
     *
     * @param ncPath
     */
    @Value("${ncPath}")
    private void setNcPath(String ncPath) {
        Constants.ncPath = ncPath;
    }

    /**
     * 覆盖代码注释
     *
     * @param tmpPath
     */
    @Value("${tmpPath}")
    private void setTmpPath(String tmpPath) {
        Constants.tmpPath = tmpPath;
    }

    @Value("${delayed}")
    private void setDelayed(int delayed) {
        Constants.delayed = delayed;
    }


    @Value("${jz_001}")
    private void setJz_001(boolean jz_001) {
        Constants.jz_001 = jz_001;
    }

}
